xend: Check no VBDs attached on VDI.destroy
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Oct 2009 07:35:21 +0000 (08:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Oct 2009 07:35:21 +0000 (08:35 +0100)
commitdea1048d11a1613ca3c4519ba0559f583054e00b
tree9b8b3853ab3a08b75e06e875244dfae3724a5006
parent81a8a749f5e1f770933eb3889c069eff23cdf143
xend: Check no VBDs attached on VDI.destroy

We can destroy a VDI by VDI.destroy even if the VDI is being used
to VBDs. This patch checks that the VDI is not used to VBDs.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendError.py